package object2.finaltest;

public final class Test {
    private final int y = 20;

    public static void main(String[] args) {
        final int x = 10;
        System.out.println(x);
//        x = 20;//无法修改,会直接报错

        Test t = new Test();
//        t.y = 200;//也无法修改
        System.out.println(t.y);
    }
}
